<?php 
class BServiceManager
{
	public function createService();
}
?>
<?php
class BServiceManager
{	
	/**/
	public function createService($creatorId,$serviceType,$data)
	{
		return $serviceId;
	}
	public function createServiceTeam($serviceId,$serviceType)
	{}
	/*this method used for init all services for user,once each user register, it must 
	 * initPersonalServices first
	 * when none-individual type of user created, it will init personalservices too, 
	 * after personal services, it also create one business type of service*/
	public function buildPersonalServices($userId,$data)
	{}
	public function createWorkingTeamService($workingTeamId,$data)
	{}
	/*this method will create a series of services for workteam*/
	public function buildWorkingTeamServices($workingTeamId,$data)
	{}
	
	public function requestJoinServiceTeam($userId,$serviceTeamId,$data)
	{}
	public function approveJoinServiceTeam($userId,$serviceTeamId,$data)
	{}
	public function requestJoinWorkingTeam($userId,$workingTeamId,$data)
	{}
	public function approveJoinWorkingTeam($userId,$workingTeamId,$data)
	{}
	public function requestJoinServedTeam($userId,$servedTeamId,$data)
	{}
	public function approveJoinServedTeam($userId,$servedTeamId,$data)
	{}


}
<?php
class BServiceManager
{	
	/**/
	public function createService($creatorId,$serviceType,$data)
	{
		return $serviceId;
	}
	public function createServiceTeam($serviceId,$serviceType)
	{}
	/*this method used for init all services for user,once each user register, it must 
	 * initPersonalServices first
	 * when none-individual type of user created, it will init personalservices too, 
	 * after personal services, it also create one business type of service*/
	public function buildPersonalServices($userId,$data)
	{}
	public function createWorkingTeamService($workingTeamId,$data)
	{}
	/*this method will create a series of services for workteam*/
	public function buildWorkingTeamServices($workingTeamId,$data)
	{}
	
	public function requestJoinServiceTeam($userId,$serviceTeamId,$data)
	{}
	public function approveJoinServiceTeam($userId,$serviceTeamId,$data)
	{}
	public function requestJoinWorkingTeam($userId,$workingTeamId,$data)
	{}
	public function approveJoinWorkingTeam($userId,$workingTeamId,$data)
	{}
	public function requestJoinServedTeam($userId,$servedTeamId,$data)
	{}
	public function approveJoinServedTeam($userId,$servedTeamId,$data)
	{}


}